package com.bbj.ch4_abstract.demo1;

/**
 * @author
 * @date 2024/4/28、14:14
 */
public class MainTest {
    public static void main(String[] args) {
        Card card = new GoldCard("张三", 10000.0);
        card.pay(1000.0);
        card.pay(500.0);

        Card card1 = new SilverCard("李四", 10000.0);
        card1.pay(1000.0);
        card1.pay(500.0);
    }
}
